package com.yangye.pisystem;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;
import tk.mybatis.spring.annotation.MapperScan;

@SpringBootApplication
// 开启缓存
@EnableCaching
@ComponentScan(basePackages = {"com.yangye"})
@MapperScan("com.yangye.*.dao")
@EnableGlobalMethodSecurity(prePostEnabled = true)
public class PiSystemApplication {

    public static void main(String[] args) {
        SpringApplication.run(PiSystemApplication.class, args);
    }

}
